#ifndef BSP_UART_H
#define BSP_UART_H

#include "stm32f1xx_hal.h"

extern uint8_t ScreenUart_RxBuffer[100];
extern UART_HandleTypeDef DEBUG_UART_Handler;
extern UART_HandleTypeDef SCREEN_UART_Handler;

#define DEBUG_UART_CLK_ENABLE()         __HAL_RCC_USART1_CLK_ENABLE()
#define DEBUG_UARTx                     USART1
#define DEBUG_UART_IRQn                 USART1_IRQn
#define DEBUG_UART_IRQHandler           USART1_IRQHandler

#define SCREEN_UART_CLK_ENABLE()        __HAL_RCC_USART3_CLK_ENABLE()
#define SCREEN_UARTx                    USART3
#define SCREEN_UART_IRQn                USART3_IRQn
#define SCREEN_UART_IRQHandler          USART3_IRQHandler

void DebugUart_Init(void);
void DebugUart_SendData(uint8_t *data);
void ScreenUart_Init(void);
void ScreenUart_SendData(uint8_t *data);
#endif